﻿
@{
    ViewBag.Title = "Index";
}

<h2 class="clock">Index</h2>
<button>Refresh</button>

@section scripts{
    <script>
        $(function () {
            $("button").click(function () {
                $.ajax({
                    url: "/Ajax/GetTime",
                    success: function (response) {
                        $(".clock").html(response);
                    }
                });
            });
        });
    </script>
}